﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace ClasesLibreria.dao
{
    public static class DAOBarrio
    {
        public static SqlDataReader queryBarrios(String connectionString)
        {
            // hola mundo
            SqlConnection conn;
            SqlCommand cmd;
            SqlDataReader dr;

            conn = new SqlConnection();
            conn.ConnectionString = connectionString;
            conn.Open();
            cmd = new SqlCommand("SELECT idBarrio, nombreBarrio FROM barrio  ");
            cmd.Connection = conn;
            dr = cmd.ExecuteReader();

            return dr;
        }
    }
}
